import 'package:flutter_app/app/models/movie.dart';
import 'package:flutter_app/app/networking/search_movie_api_service.dart';

import '/app/controllers/controller.dart';
import 'package:flutter/widgets.dart';

class SearchMovieController extends Controller {
  SearchMovieApiService _searchMovieApiService = SearchMovieApiService();

  @override
  construct(BuildContext context) {
    super.construct(context);
  }

  Future<Movies> searchMovie(String url, query, int page) async {
    Movies response =
        await _searchMovieApiService.searchMovie(url, query, page);
    return response;
  }
}
